package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.InDepotBillProduct;
import com.weixing.mall.provider.model.dto.ChgDepotNumDto;
import com.weixing.mall.provider.model.query.DepotBillDetilQuery;
import com.weixing.mall.provider.model.vo.InDepotBillProductDetilVo;
import com.weixing.mall.provider.model.vo.InDepotBillProductVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 仓库模块-入库单关联商品 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
@Repository
public interface InDepotBillProductMapper extends BaseMapper<InDepotBillProduct> {

    IPage<InDepotBillProductDetilVo> getInDepotBillDetilList(@Param("pg") Page page, @Param("qs") DepotBillDetilQuery depotBillDetilQuery);

    IPage<InDepotBillProductVo> getInDepotBillProductByInDeoptId(@Param("pg") Page page,Long inDepotId);

    List<InDepotBillProductVo> getInDepotBillProductByInDeoptId(Long inDepotId);


    void inDepotChgNum(@Param("qs")ChgDepotNumDto chgDepotNumDto);
}
